package com.guaoran.user.notify;

import org.apache.kafka.clients.consumer.ConsumerRecord;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.kafka.listener.MessageListener;
import org.springframework.stereotype.Service;


@Service
public class UnKnowMessageListener implements MessageListener<Integer,String> {
    private Logger logger = LoggerFactory.getLogger(this.getClass());
    @Override
    public void onMessage(ConsumerRecord<Integer, String> integerStringConsumerRecord) {
        logger.warn(integerStringConsumerRecord.toString());
    }
}
